package coreStore;

public class Reverse_Bits {
	public int reverseBits(int n) {
		int rst = 0;
		for(int i=0;i<32;i++){
			rst = 2*rst+(n&1);
			n>>>=1;
		}
		return rst;
    }
	
	public static void main(String[] args){
		Reverse_Bits reverse_Bits = new Reverse_Bits();
		System.out.println(reverse_Bits.reverseBits(0));
	}
}
